<?php
/*
 * Author: Nam, Nguyen H.
 * Module: Lang
 * Desc  : Introduce pick.vn and sidle pic
 * Date  : 12/12/2011
 */

    $messages = array();
    $lang = $request->element('lang');
    $langCurent = $logs->getLangClient();
    if(!empty($lang)){
		$logs->setLangClient($lang);
	}elseif(!empty($langCurent)){
		$lang = $langCurent;
	}else{
		$lang = $languages->getDefaultLanguage();
        $logs->setLangClient($lang);
	}
    /* Lấy thông tin module */
    $modules = new Pick_Core_Modules();
    $opinfo  = $modules->getObjectFromCode($op);
	if(is_object($opinfo)){
    	$op = $opinfo->getField('code');
	}
	
	$messages = $languages->getArrayMessages();